#ifndef MAINWINDOWIMPL_H
#define MAINWINDOWIMPL_H
//
#include <QMainWindow>
#include <QPair>
#include <QString>
#include <sys/stat.h>
#include <boost/lexical_cast.hpp>
#include "ui_mainwindow.h"
//#include "QAsyncSerial.h"
#include "plot.h"
#include "config.h"

//
class MainWindowImpl : public QMainWindow, public Ui::MainWindow
{
Q_OBJECT
public:
	MainWindowImpl( QWidget * parent = 0, Qt::WFlags f = 0 );

private:

        //QAsyncSerial serial;
        Plot *d_plot;
        Config configFile;
        void setSerialComboBox();
        void getConfigParameters();
        void setConfigParameters();

signals:
        void tempReceived(double value);
        void configReceived(double tSetReceived, double tRangeReceived);
        void aireStateReceived(int state);
        void alarmStateReceived(int state);
        void textToLog(QString txt);

private slots:
        void on_openCloseButton_clicked();
        void parseLineReceived(QString dataReceived);
        void refreshLCDTemp(double value);
        void addTempToPlot(double value);
        void logAppend(QString txt);
        void aireStateChange(int state);
        void alarmStateChange(int state);
        void received();
};
#endif




